import request from '@/utils/request'


// 查询调拨出库单列表
export function selectAdjustOutBillForPrint(query) {
  return request({
    url: '/bill/adjustOut/selectAdjustOutBillForPrint',
    method: 'get',
    params: query
  })
}



// //执行出库
export function executeAdjustOutBill(data) {
  return request({
    url: '/bill/adjustOut/execute',
    method: 'post',
	  data
  })
}



// 查询调拨出库单列表
export function listAdjustOut(query) {
  return request({
    url: '/bill/adjustOut/list',
    method: 'get',
    params: query
  })
}

// 查询调拨出库单详细
export function getAdjustOut(id) {
  return request({
    url: '/bill/adjustOut/' + id,
    method: 'get'
  })
}

// 新增调拨出库单
export function addAdjustOut(data) {
  return request({
    url: '/bill/adjustOut',
    method: 'post',
    data: data
  })
}

// 修改调拨出库单
export function updateAdjustOut(data) {
  return request({
    url: '/bill/adjustOut',
    method: 'put',
    data: data
  })
}

// 删除调拨出库单
export function delAdjustOut(id) {
  return request({
    url: '/bill/adjustOut/' + id,
    method: 'delete'
  })
}

// 取消调拨出库单
export function cancelAdjustOut(data) {
  return request({
    url: '/bill/adjustOut/cancel',
    method: 'put',
    data: data
  })
}
// 取消调拨出库单
export function confirmCancelAdjustOut(data) {
  return request({
    url: '/bill/adjustOut/confirmCancel',
    method: 'put',
    data: data
  })
}

// 完成调拨出库单
export function completeAdjustOut(data) {
  return request({
    url: '/bill/adjustOut/complete',
    method: 'put',
    data: data
  })
}

// 确认调拨出库单
export function confirmAdjustOut(data) {
  return request({
    url: '/bill/adjustOut/confirm',
    method: 'put',
    data: data
  })
}




// 查询调拨出库单明细列表
export function listAdjustOutDetail(query) {
  return request({
    url: '/bill/adjustOutDetail/list',
    method: 'get',
    params: query
  })
}

// 查询调拨出库单明细详细
export function getAdjustOutDetail(id) {
  return request({
    url: '/bill/adjustOutDetail/' + id,
    method: 'get'
  })
}

// 新增调拨出库单明细
export function addAdjustOutDetail(data) {
  return request({
    url: '/bill/adjustOutDetail',
    method: 'post',
    data: data
  })
}

// 修改调拨出库单明细
export function updateAdjustOutDetail(data) {
  return request({
    url: '/bill/adjustOutDetail',
    method: 'put',
    data: data
  })
}

// 删除调拨出库单明细
export function delAdjustOutDetail(id) {
  return request({
    url: '/bill/adjustOutDetail/' + id,
    method: 'delete'
  })
}
